package com.chinatsp.onlineapp.ui.weather;

import java.util.List;

import tsp.cn.http.tools.LogUtil;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class WeatherAdapter extends FragmentPagerAdapter {

	private int citySize;
	private Context mContext;
	private List<String> list_cityName;

	public WeatherAdapter(FragmentManager fm, List list_cityNum) {
		super(fm);
		this.list_cityName = list_cityNum;
	}

	@Override
	public Fragment getItem(int position) {
		LogUtil.e(list_cityName.get(position));
		WeatherFragment weatherFragment = new WeatherFragment(list_cityName.get(position));
		return weatherFragment;
	}

	@Override
	public int getCount() {

		return list_cityName.size();
	}

}
